*{
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3259CE;
    --primary-light: #4A76F5;
    --secondary: #6C757D;
    --light: #F8F9FA;
    --dark: #212529;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --border-radius: 12px;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body{
    font-size: 18px;
    font-family: 'Simsun';
}

.nav{
    width: 15%;
    height: 100vh;
    background-color: #F1F4F9;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    border-top-right-radius: 15px;
    overflow: hidden;
}

.nav a{
    text-decoration: none;
    color: #000;
    font-size: 20px;
    padding-bottom: 10px;
}
    

.nav .logo{
    width: 100%;
    height: 80px;
    position: absolute;
    top: 5px;
    left: 5px;
}

.nav .logo img{
    height: 80px;
    position: absolute;
    left: 5px;
    top: 5px;
}

.nav .logo p{
    padding-left: 15px;
    font-size: 30px;
    font-family: 'Simsun';
    line-height: 80px;
    width: 30%;
    height: 100%;
    position: absolute;
    top: 5px;
    left: 80px;
}

.nav .show{
    width: 30%;
    height: 50px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.show svg{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 22px;
    right: 10px;
    background-color: #dbdbdb;
    border-radius: 5px;
    padding: 2px;
}

.show .unfold-icon{
    display: none;
}

.nav .content{
    width: 100%;
    height: 250px;
    position: absolute;
    top: 170px;
    left: 0;
    overflow: hidden;
}

.content div{
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    padding-left: 40px;
}

.content div:hover{
    background-color: #E7F2FF;
}

.content .workbench{
    background-color: #4a75f55a;
}

.content .feedback{
    background-color: transparent;
}

.content .feedback:hover{
    background-color: #E7F2FF;
}

.content svg{
    width: 30px;
    height: 30px;
    padding-top: 5px;
    padding-left: 5px;
}

.content p{
    width: 60%;
    height: 50px;
    font-size: 17px;
    font-family: 'Simsun';
    line-height: 50px;
    float: right;
    margin-right: 40px;
}

.nav .manage{
    width: 100%;
    height: 70px;
    position: absolute;
    top: 550px;
    padding-left: 20px;
}

.nav .manage:hover{
    background-color: #E7F2FF;
}

.manage label{
    width: 80%;
    height: 50px;
}

.manage svg{
    width: 30px;
    height: 30px;
    padding-top: 15px;
    padding-left: 15px;
}

.manage a{
    text-decoration: none;
    color: #000;
    font-size: 18px;
}

.nav .exit{
    width: 100%;
    height: 60px;
    position: absolute;
    bottom: 10px;
    padding-left: 20px;
}

.nav .exit:hover{
    background-color: #E7F2FF;
}

.exit svg{
    width: 40px;
    height: 40px;
    padding-top: 15px;
    margin-left: 10px;
}

.exit p{
    float: right;
    margin-right: 100px;
    height: 70px;
    line-height: 70px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    transition: var(--transition);
}

.workflow {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
}

.card-title i {
    font-size: 24px;
}

.input-area textarea {
    width: 90%;
    height: 200px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: var(--transition);
}

.input-area textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 118, 245, 0.15);
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    margin-bottom: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 118, 245, 0.15);
}

.slider-container {
    margin-top: 15px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

input[type="number"]{
    width: 30%;
    height: 15px;
    border-radius: 2px; 
    border: 0;
}

.output-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.output-btn:hover {
    box-shadow: 0 8px 15px rgba(50, 89, 206, 0.3);
}

.output-btn:active {
    transform: translateY(0);
}

.result .dialog{
    width: 700px;
    height: 124px;
    max-height: 500px;
    position: absolute;
    top: 550px;
    left: 30%;
    border: 2px solid #e6e6e6;
    border-radius: 20px;
    box-sizing: border-box;
    padding: 10px;
}

.dialog textarea{
    width: 90%;
    height: 60px;
    max-height: 500px;
    resize: none;
    font-family: 'Simsun';
    font-size: 18px;
    border: 0;
}

.dialog textarea:focus{
    outline: none;
}

.dialog svg{
    width: 30px;
    height: 30px;
}

.dialog .set-model{
    width: 100px;
    height: 40px;
    position: absolute;
    bottom: 7px;
    left: 10px;
    background-color: #e3f2fd;
    border-radius: 20px;
}

.set-model button{
    width: 50px;
    height: 30px;
    border: none;
    background-color: #e3f2fd;
    font-size: 18px;
    line-height: 30px;
    font-family: 'Simsun';
    position: relative;
    top: -5px;
}

.set-model svg{
    position: relative;
    top: 5px;
    left: 5px;
}

.dialog .attachment-icon{
    width: 20px;
    height: 20px;
    position: absolute;
    top: 90px;
    right: 80px;
}

.dialog .send-icon{
    width: 20px;
    height: 20px;
    position: absolute;
    top: 90px;
    right: 30px;
    cursor: pointer;
}

.result .result-content{
    width: 50%;
    height: 500px;
    position: absolute;
    top: 30px;
    left: 50%;
    margin-left: -400px;
    padding-top: 15px;
    padding-left: 50px;
    padding-right: 50px;
    overflow-y: auto;
}

.result-content .res-con{
    transition: 0.5s;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    overflow-x: visible;
}

.result-content .res-con p{
    line-height: 20px; 
}

.result-content .message{
    margin-bottom: 15px;
    padding: 10px 25px;
    border-radius: 8px;
    max-width: 90%;
    word-wrap: break-word;
    overflow-x: visible;
    margin-left: 50px;  
}

.result-content .user-message {
    background-color: #e3f2fd;
    align-self: flex-end;
    margin-left: auto;
}

.result-content .bot-message {
    background-color: #f5feff;
    align-self: flex-start;
      
}

.res-con svg{
    width: 40px;
    height: 40px; 
    float: left;
    z-index: 200;
    margin-bottom: -50px;
    background-color: #c9e6fb;
    border-radius: 50%;
}

.res-con img{
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav {
        width: 80px;
    }
    
    .nav:not(.collapsed) {
        width: 260px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .workflow {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        width: 60px;
    }
    
    .nav:not(.collapsed) {
        width: 260px;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 20px 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .nav.collapsed ~ .main-content {
        margin-left: 60px;
    }
    
    .card {
        min-width: 100%;
    }
}